package com.maxqaq.utils;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ResultMsgEnum {
    SUCCESS(0,"成功"),
    FAIL(-1,"失败"),
    AUTH_ERROR(502,"授权失败"),
    SERVER_BUSY(503,"服务器正忙，请稍后再试"),
    DATABASE_OPERATION_FAILED(504,"数据库操作失败");


    private Integer value;
    private String message;

    public Integer getValue() {
        return value;
    }
    public String getMessage(){
        return message;
    }
}
